package com.globo.opensocial;

import junit.framework.TestCase;

import java.util.List;
import java.util.ArrayList;

public class ApplicationTestCase extends TestCase {
    private Application application;

    public void testGetInstance() {
        assertNull(Application.getInstance());
    }

    public void testClearInstance() throws Exception {
        new Application();
        assertNotNull(Application.getInstance());
        Application.clearInstance();
        assertNull(Application.getInstance());
    }

    public void testGetJavascripts() throws Exception {
        application = new Application();
        assertEquals(new ArrayList<String>(), application.getJavaScripts());
    }
}
